package com.xlh.openai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@ApiModel("兑换码类")
@Accessors(chain = true)
@TableName("exchange_code")
public class ExchangeCodeEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("兑换码")
    private String code;

    @ApiModelProperty("产品ID")
    private Integer productId;

    @ApiModelProperty("产品描述")
    private String productDesc;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("兑换状态")
    private Integer status;

    @ApiModelProperty("过期时间")
    private Date expiredTime;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    @ApiModelProperty("更新时间")
    private Date updatedTime;

}
